package com.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 用户模块
 */
@Controller
@RequestMapping(value = "/user")
public class SysUserController {
    private Logger logger = Logger.getLogger(SysUserController.class);
    /**
     * 查询用户详情
     */
    @RequestMapping(value = "/view",method = RequestMethod.GET)
    //@GetMapping 等同于上注解
    public String view(){
        logger.info("查询用户详情");
        return null;
    }

    /**
     * 保存用户信息
     */
    @RequestMapping(value = "/save",method = RequestMethod.POST)
    //@PostMapping 等同于上注解
    public String save(){
        logger.info("保存用户信息");
        return null;
    }
}
